#include <bits/stdc++.h>
using namespace std;
long long n, m, sum[(int)1e6 + 3], ans;
int main() { 
  scanf("%lld", &n);
  for (int i = 1; i <= n; i++)
    for (int j = i; j <= n; j += i)
      sum[j] += 1ll * i;
  ans = n - 1;
  cout << ans << ' ';
  for (int i = 2; i <= n; i++)
    ans = ans + n - sum[i],
    cout << ans << ' ';
}
